/**
  *@file    arch_if.h
  *@brief   platform common opretion interface
  *@anthor  zxf 2018-09-01
  *@version V1.0.0
  */
#ifndef __ARCH_IF_H__
#define __ARCH_IF_H__

/*----- arch headfile -----*/
#include "n32wb03x.h"

/*----- C standard lib headfile  -----*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
 
/*----- peripheral standard lib headfile-----*/
#include "gapm_task.h"               // GAP Manager Task API
#include "ns_sec.h"
#include "rwip.h"
#include "ns_ble.h"
#include "ns_sleep.h"
#include "ns_delay.h"
#include "ns_log.h"

#include "app_ble.h"
#include "app_rdtss.h"

/* Exported define --------------------------------------*/
/* Exported macro ---------------------------------------*/

#define GPIO_Set_Hi(port, pin)         GPIO_SetBits(port, pin) 
#define GPIO_Set_Lo(port, pin)         GPIO_ResetBits(port, pin) 
#define GPIO_Toggle(port, pin)         GPIO_TogglePin(port, pin) 
#define GPIO_Get_In(port, pin)         GPIO_ReadInputDataBit(port, pin) 

/* Exported typedef -------------------------------------*/
/* Exported variables -----------------------------------*/
/* Exported functions -----------------------------------*/

u8 arch_Init(void);

#endif //end __ARCH_IF_H__

